const app = Vue.createApp({ data() { return { messaggio: "Hi Alert!", kdInput: "", keInput: "", }; }, methods: { myAlert() { alert(this.messaggio); }, myKeydown(event){ this.kdInput = event.target.value; }, myKeyEnter(event){ this.keInput = event.target.value; } }, }); app.mount("#assignment");